package com.medata.service;


import com.medata.dataObject.Account;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface AccountService  {
    Account findByUserName(String name);
    List<Account> findAll();
    void delete(Account account);
    Page<Account> findAllByPage(Pageable pageable);
    long findCount();
    void save(Account account);
}
